added functionality for changing the database folder