Raise C3P0 idle test period

Raised the period to test if a connection is idle from 1 second to 30. Also simplified the test query for PostgreSQL to `SELECT 1;`