added json database support