updated sql so it will work on a reinstall