crud for warehouses

fixed #2 and #1