Changes to fix my SQL integration