Adding ItemTemplate to the database