adjust database path handling