dao for user, preferences implementation