fixing overengineered engine

this database "engine" is a bit overengineered, so im going to make
it...less so.
simplified the db engine...