Clean up settings on db dispose