Bash script to run pulltodb