insert and elect in database connection pool