Added database cache support.