PT41486997 - sipXhomer leaking memory

Multiple fixes for issues indicated by Valgrind - memory leaks, memory corruptions & overruns:
- leak - sqa event was not always released;
- leak - connection to homer_db was not disconnected;
- overruns - size of sql type was not correct for int, long;
- possible overruns - changed the defaults inserted in db when a real value is not available
for column. It's not correct to always insert empty string even for int, long, timestamp.
- bug - It was trying to insert value of REPLY_REASON instead of inserting REASON. Specifying the same
column two times in an insert is not correct and exception was thrown;
- overrun - value of some parameters from SIP headers was not retrieved correctly;
- bug - the set value for proto_type should be SIP not Sipx