replace the custom DoubleItems class with the system Pair<> class
Add the possibility to call the internal database writing routines to use with AsynchronousDbOperation