def METHOD_NAME(self):
    with DBSession() as db:
        cred = db.query(DelugeCredentials).first()
        if not cred:
            return None
        return {'host': cred.host, 'port': cred.port, 'username': cred.username}