improved restore performance by reusing a single database connection