implemented embedded crap, started actually persisting to the db