Refactored to get a Databaser object.

Refactor to let DB objects hold an instance of their DB connection, such
that I can create DB out of nowhere for testing purpose and delete the
DB right away.
Partial test, with red for PG support.