Database fixing