More json parsing, fixed uploading, added slot count to db model.