api changes - use of futures

refactored insert*, selectByRef*, delete* methods to return Future[T], also reformatted source code