Added database functional