Fixed hard-coded user id in updateLibrary()