insndb/core: introduce Records type