adding support for simple db operations