#!/usr/bin/env bash
db=ourbigbook
args=()
while [ $# -gt 0 ]; do
  case "$1" in
    -d)
      db="$2"
      shift 2
      ;;
    *)
      args+=("$1")
      shift
      ;;
  esac
done
PGPASSWORD=a psql -U ourbigbook_user -h localhost "$db" "${args[@]}"
