Added a commandline option to specify the datadir (the dir containing sqlite db and...