refactored serialized technicaldatabase out; using sqlite database