Is there any chance your queries are causing triggers to run that are causing connection property side effects?
Consider adding a statement to the data source configuration that explicitly sets the current database every time a connection is taken from the pool.