Added all of the tables and triggers! Dunno if it works though...