Fixed issue where db pool not checking for idle connections