inventory database design tutorial