database stuff, still missing inheritance and seed tweaking