public DbCommand InsertBatchMessages(IPersistentRepresentation[] messages)
{
var command = new SQLiteCommand(_insertMessagesSql);
command.Parameters.Add("@PersistenceId", DbType.String);
command.Parameters.Add("@SequenceNr", DbType.Int64);
command.Parameters.Add("@IsDeleted", DbType.Boolean);
command.Parameters.Add("@Manifest", DbType.String);
command.Parameters.Add("@Timestamp", DbType.DateTime);
command.Parameters.Add("@Payload", DbType.Binary);
return command;
}