database - json connection