Add support for relative paths in databases