Rafactoring + rest and dao for request creation