Implemented Datatbase -> JSON Serialiser

Started thinking about implementing a serialiser.  Need to think about
abstracting it for more dynamic use.  Anyway...