working JSON database