Check is database exists