'type' is a reserved database column name