using postgresql and sinatra to simulate a store with items and categories