OSM: Better checking for planet_osm existence

Use psql's -d argument and avoid one extraneous grep this way. Also one
less column to ask for

Change-Id: I21d9026ac396c268419317bab93df80587b5b90f