added services functions to process tasks and back db, so that we can
convert the system to use plocal connection in Orientdb.