Fix salesforce script memory problems, store data to GDBM database