Added DBChooser

Implementation of the DB API.