add support for storing default_connection in db