added additional features, rounding out database API