Updated setup Bash script
Added SQL table setup script, refactored flash messages to service