Using a paginated query to reduce memory usage

`get_full_list` tries to fetch all beans of a module in a single array which fails if you have many beans. With this PR the beans are fetched and updated in pages, so the script has a more-or-less constant memory consumption and also works with several thousand beans.