Adding DB check