tweaks to update.sh to work also with broken MacOSX sed and grep
create actual postgis database instead of template