session.query(DevTable).one() might be nicer here