fixes db query in c_users