Modified app to accept orders and record on database