Db addons

https://github.com/algolia/algoliasearch-rails-example/pull/2  fix