Added database stuff