Why close the database, just to immediately open it again?