Check if DB exists.