database fix for production