changed database to be closed by default