don't forget to close all dbs