Added database wrapper.