updating removing un needed db functions