added option to vacuum on close db