added basic user saving and retrieving api