Added database management.