Created a DB view for messages, to make it easy to include writer info in the queries. Closes #13.