add replynum and partnum in database.sql