fix user settings queries