* changes: store contact id in messages table instead of contact name string; merge messages and group messages tables.