Corrected photo database handling. Now supports multiple profiles.
Version bump 0.8