SQL program cleanup.