added Update DB functionality in REST API