update, added new functionalities to server side, including Database management