Updated sql script and tables diagram to reflect the new database schema