convert attachment class to new db api, use parameters where possible
convert attachment class db api, use parameters where possible
convert category class db api, use parameters where possible