Fix DB check errors

fixes 184