Recreated without active record for mongodb