fix deprecation warnings
make sure sentry can write to the db