Inbox: fix bugs in message deletion, fix database schema