Add putting non geotagged images to the gallery table
add support to only show geotagged images on the messages tab
Remove unused db query