implemented getUserByName and getUserById with jdbc