inventory management database design