[hopefully] fixed db errors