Replace ActiveRecord and PG with mongo, configure db connection