create to edit or add components in database