modified add folder to return a map with the new key and the new records.
modified get-folder to convert id to an int