Fix a bug with urls longer than 200 char storage in db (with psql).
Fix a bug with pin upload and pin_create_tmp_resource session variable.