changed db configuration so memory database is not dropped when there are no connections