logic for DB connection - UserDAOFunctionalTest is included for the verification