Mostly working Database!

dont fiddle with it too much yet, I know I still have to work out some
bugs