Edited for Remote SQL Connection