Changed the adapter to mysql2 and used the connections of the connection pools