Implemented database de-serialization