[really] fixed db errors