select table_name from acs_object_types where object_type = :object_type select $columns from ${table_name}i where object_id = :object_id select db_type as column_spec from dtype_db_datatypes where datatype = :data_type select * from acs_attributes where acs_attributes.attribute_name = :name and acs_attributes.object_type = :object_type update acs_attributes set pretty_name = :pretty_name, pretty_plural = :pretty_plural, default_value = :default_value where acs_attributes.attribute_name = :name and acs_attributes.object_type = :object_type select table_name from acs_object_types where object_type=:object_type select id_column from acs_object_types where object_type=:object_type