redesign db interfaces