add crashlytics and wrap up database transactions in finally blocks