Progress bar from db in console, stop working on parsing json object