Fixed the connection handling - some modules would want to run cachedb type ops in the mod init
Fixed the DB schema & increased version - the keyname must be a primary key for the counter ops to properly work
When fetching a counter, do not accidentally create it in case it does not exist
PostgreSQL DB schema: remove bytea size because pgsql has no fixed size for this type of field
PostgreSQL DB schema: set for all serials maxvalue and cycle because sometimes serials may overflow
Merge pull request #221 from nikbyte/master

Fix some PgSQL schema issues
Postgres schema regenerated
When fetching a counter, do not accidentally create it in case it does not exist
db_unixodbc: deallocate the results only after they are processed

	* closes bug #622 on the SF tracker
Fixed bogus test on memory allocation.

(cherry picked from commit d9fe58e721a0e4c53841e91ba766df7bbce2cae5)
Fixed examples in docs (uac versus uac_auth)
db_text: properly initialize memory when caching tables
scripts: fix gdb detection for opensipsctl
Fix reusage of proxy_l structures.

As proxy_l structures contain information about the DNS-based failover (iteration in he struct, which SRV or NAPTR records were used or not), such structure cannot be used more then once for sending a message out.
Fixes:
- do not use the same proxy_l for multiple functions in script (remove the add_proxy() and find_proxy() )
- avoid using the same proxy_l structure for all the calls of same function (when proxy_l is a function parameter)

Fixes #224
Many thanks for Chris Maciejewski ( @l7s ) for support on troublehsooting this.
Fix DB_BIGINT support and unused vars.

(cherry picked from commit 611d47f5ac3ed36bcf3cfa233e25586b29616e88)
call_center: properly register B2B callbacks
call_center: add column info when loading calls from db
call_center: add last_call_end column
call_center: add cc_calls table
call_center: fix default scenario readme
b2b_logic: do not call the DESTROY callback at shutdown