checking for DB exists.