database fix