Fixed a database problem in PM and SEND