Check getProfile read was successful
Merge pull request #400 from SamStudio8/database

Check getProfile read was successful