partial quick and dirty DB integration

needs more love