Fixing a database table