cyphar: correct use of decorators for db connections