groonga: Extract validation logic for the table name
groonga: Fix mismatched variable name
groonga: Extract method to validate column name