added worker functionality

-added worker queries and tests
-still unable to test the photo data going into database and extracted
back out