SQL file reordered to work properly. buyCart functionality added to pages viewable by customer.