Optimized DB additions:
- Batch search/insert of patches from an image
- Patch caching
- Hash caching
- Patch hash and image vector are recomputed as little as possible
- Change to schema to include additional index and metadata table
- BUG FIX: upload-all stored just the image, and did not patchify (my fault; I now made that DatabaseClient method private)
- ISSUES: removed self-similarity optimizations of Wei's; will re-add in next iteration
Merge branch 'master' of https://github.com/shumash/db_project