Complete a few apis including FoundationDB integration