fixed db error block creation