added getopt to initdb