added basic message viewer and database backend.