fix to use rootpath to anchor database file