Initial, partial implementation for SMSG_DB_REPLY. This is based on older versions, and several corrections / additions will need to be made before it's fully working as intended.