Fixing shit with SQL connections