Made SQL connections handle updates