Add script to clear scheduler from database and database reorganisation