Added new functions and updates database data