Changed db api to be the same as the mapper: apply/start