changed db check