+db constructor and addMessage method