Close resultSets in database controller