Adding basic user functions for database.