db check fix