Parse date and msg
Add database support