re-fix database