bugfix: for previous fix. leaky abstraction. database adapter is leaking through