generate snippet ids in the app layer, rather than in postgres.
update readme clarifying how to set up database.