Database functionality added to other classes