Fixed SQL Syntax linking to dev database table. Improved connection closing to prevent resource set leaks.