check for valid db name