checking if database name already exists