Tried adding the db check