Added database connection and query database for user based on ID