Fixes #24 #27 #34

Detected serious bug in epc_dba, put_im makes system crash.
Note that addToIndex(ImageURL, Perception) is commented in indexer.erl, so it will only print messages instead of saving the hash in the database.