Fix addDevice query for extended Device data model
Turn enum-typed sleepType and geofenceType to plain String to avoid DB query issues
Fix GetPendingTcpCommands query
Don't request TCP commands transmission when there're none of them
Print exception stacktraces in problematic cases