change database functionality can use with RestApi