Fix db method context

During implementation I forgot to bind exposed methods to the db object.