The main possibility of your issue is the connection file. I think there is an issue with your connection (config code ). Where is your config file code?
Check your connection parameters and make sure to correct them. If you will get this "
Fatal error: Call to a member function execute() on boolean " error again then, edit your question description. Add your connection file code also.