added database fix