An event sourcing database engine