adding Database check