added collection model functions to insert data. added handlers to add/remove from collections.