Major rearragement of code into functions
- Added check if PostgreSQL is installed on CentOS/Fedora
- Added check for latest docker compose release tag from GitHub
- Changed permission check to when script is launched instead of each function
- Changed database import function