get rest take user from db