Preferences tab: define the working directory and the connection to the database