Added debug messages

Added debug messages to daemons and sqlite-adapter (mysql-multimaster-adapter and multiserver-worker/client left untouched because they are still incomplete)