Fixed fetching next batch
Simpler FunctionFuture API
Added database, transaction and future storage to prevent GC
Synchronizing database, transaction and future storage