order functionality

Cart and order functions now work. The cart's contents get inserted into
the database.