Added the -d option to prevent opening a browser when querying the DB.