Got things working as well as possible with the JSON database hack.