Attempt to fix db errors