DBserializsation

replace flat file serializer with sqlite