add database model
move code to timeframe model
create duration for every worklog
Merge branch 'master' into worklog_timeframes