Photo table in database implemented (not tested).