save as serial date to sqlite