Altered sql scripts and corresponding *.php files to new tables