fixes database to new