Bash Set Variable To Output Of Functions In Sql