added optionnal file argument to dbmain.sh