fixes message send api to work with updated db schema
Merge remote-tracking branch 'origin/master'