Fix the TaskRecord#user_work methods PG error

* Fix PG error
* Add WorkLog.duration_per_user scope with specs
* Add specs for TaskRecord#user_work