save and fetch data in db

basic save and fetch data