Function disconnectKnex