added actual query of the database (for single user)