Establish connection to database and make getConnection async