Fixed setting template id via DbItem constructor