Changed indentation, improved SQL scripts and new messages for the bash script

- They will split the data into more atomic tables.
- New foreign keys introduced.
- New messages for the bash script and changed DEFAULT NULLs to NOT NULL
- Changed indentation and fixed an error when no data was present