indexer service and phash port separation
indexer writes to the database