Change the subscriber and database backend

gsm_subscriber is now refcounted, the db backend is leaking
a lot less, db_get_subscriber will allocate the subscr record
now, subscr_* will look up a subscriber in the list of currently
active subscribers and add an ref to this one.

The db test cases pass, more testing will be when next to the bts
diff --git a/tests/db/Makefile.am b/tests/db/Makefile.am
index 936263b..5c9c784 100644
--- a/tests/db/Makefile.am
+++ b/tests/db/Makefile.am
@@ -1,8 +1,8 @@
 INCLUDES = $(all_includes) -I$(top_srcdir)/include
-AM_CFLAGS=-Wall
+AM_CFLAGS=-Wall -ggdb3
 
 noinst_PROGRAMS = db_test
 
-db_test_SOURCES = db_test.c $(top_srcdir)/src/db.c
+db_test_SOURCES = db_test.c $(top_srcdir)/src/db.c $(top_srcdir)/src/gsm_subscriber.c
 db_test_LDADD = -ldl -ldbi