removed unused function, validate_dbname