insert messages into db.

small steps.