Update database version after upgrade, fix 403 detection on sharing app