Fixed lookup for databases, now returns db path