Fixes expires_at PG function