write to db
Write to db.
logging with timestamps.