prevent reopening of database connection