Added some updated database query routines

These methods are more useful because they return photo instances.
One can then access the attributes he needs.