add getById, fix getIdByParams and fix MaintenanceHandler