updated database query path