Connection: Fix the connecting state issue
Execute prepared statements use the same method to obtain an available connection as normal queries.
Removed obsolete test.