DB integration and JSON