mpper interface added, mapper now called db