Add support for choosing the directory where databases will be saved.