Setting up the code for reading from the DB and testing images against the DB images