started to add defined types to add objects to a database