updated clearDB with Secured