updated SQL versions to fix self join on id bug.. wow