Added missing camera permisison and now the photo uri is stored in the database.