Validate database and table name format