expose and use serialise(for_db)