Added functions for get keys by serialId and get serials by distrId