Fixes $in queries
consolidate replace_keys func
Merge pull request #566 from modilabs/mongodb_in_query

Mongodb "$in" queries not working