Enable passing server and database through constructor, not Config

ping @Anahkiasen