Adding the photos

* Created PhotoDao class.
* Added a test for it.
* The photo upload controller now creates a new photo in the DB