Updating gallery code to account for empty database.
Merge branch 'master' of https://github.com/danieldouvris/MySQL-Database-Demo