finished DBS AB6 A3.sql