use db to store message