New user rest APIs

Please see above comment regarding $DB->get_in_or_equal