Added support for hosting the database and buffer in different directories