Added timestap function to every message in the database.