Fixing database