Adding db support.