specs and code for user orm queries
fixed merge
implemeted list_matches