Update db build script to use bigint for dates instead of datetime (to store millis since epoch)