Updated DBQuery to use User class