Updated SQL scripts, played around with triggers.