Modified setup script. Added category table and fixed foreign keys