Massive changes. Added Activerecord support, switched from mongodb to sqlite (for now)