Finished computing amount needed for orders and added db schema