Fixed blank db entries and changed the orders table view