Add mongoid support

Here `table` is actually `table_name`. A name like `table` makes it feel like its an object, which is a bit confusing.
Lets change to `table_name`