add created_at for principals and messages