Fixing databaseactivity.