Use date_part on apsw