Pool logic for database is operational.

Database connections are working. Handler names will be changed soon to
match certain conventions. So modules added in to support debugging and
so on.