Edited sql/: Updated table structure sql for basic sub functionality