Quick fix for db errors