Fix a database DAO bug and add new PT action