Added DB template model
Added documentation