Updating Postgres SQL to use hstore for entries
Adding flow_id field to entries table
Updating getEntries query to use Postgres hstore