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