Added the permission to use SD in the Manifest

Also open()database in PhotoActivity.