inventory linked to the database