configuring rest database