Update in jogging listener and recording service, some code in db functions updated