store seconds in postgres instead of ns