Added a loadDB function in run.sh