Feature/syncdb adapt 3

it's not used because it's broken after the las month of client changes.
however, it did work and we will want to have it working again (right now you will have to kill the children manually in case of a crash/improper shutdown of the main process).