Check file in db