add some debugging output && update the sql query for selecting the contactID in contactHandle()

Signed-off-by: Lehner Florian <dev@der-flo.net>