Restrict amount of workers when updating database

This should help with memory somewhat.