Created setup.sql file, for database creation. Also minor changes to php file which interacts with database.