make json file from db create