add db support.