db work

lots of db work, some stuff to seed the database ( i have no idea what
this is called).