Fixed DB functions for adding itcaps