Pass the callback properly when {dis,}connecting the database.