Database fix