Add database indexes for working time and account entitites

* refs #17462
Remove obsolete methods