Fixed error db