better json handling
don't hardcode db name