Fixed crash on call to database, issue with creating a new intent in
onActivityResult nullifying data.