Fixed Database pid clear