added more command-line options for database connection