Changed open-run-close to take a proc for db opener, #f to use open-db or an already opened db