Connect to database only we call getConnection.