Get the profile document from the db