remove pgsql warning on date insert