Add option dbdir to set database path