Added code to query user from DB on startup