fix perms on search and better PDO in PERMS class
Add module search to perms