added sql structure file and 173 lines of psuedocode!