Change type column to tool_type to play nice with Postgres.