Add codes for Warehouse management and maintenance and update the DB schema for some tables