Updated the DatabaseConnection class to use the User object instead of
using separate Strings for username and password