Fixing database data