Data migration

Move to new database format, change thumbnails from https to http.