dynamically evaluated table_name in sql query on cache miss
Merge remote-tracking branch 'bradrobertson/table_name_resolution'

Conflicts:
	lib/identity_cache.rb
	test/helpers/database_connection.rb