Added the getConnection function back in