fix url path bug and db rule bug