Changed time value in DB to Unix timestamp

This will allow the messages to be ordered by date