add components to database