Fixed join between projects and hashes table for queries to the hashes table

Hi Dustin,

It seems we have to explicitly specify the join in the queries (see http://docs.sqlalchemy.org/en/rel_0_9/orm/tutorial.html#querying-with-joins).

This patch fixes the queries of the hashes table.

Thanks,
Pete