check_db = async () => {
  const inUse = await tcpPortUsed.check(5432, "127.0.0.1");
  if (!inUse) {
    console.log("Local database not found.");
    const responses = await inquirer.prompt([
      {
        name: "whatnow",
        message: "How would you like to connect to a database?",
        type: "list",
        choices: [
          { name: "Install PostgreSQL locally", value: "install" },
          { name: "Connect to a an existing database", value: "connect" },
        ],
      },
    ]);
    if (responses.whatnow === "install") {
      await install_db();
    } else {
      await setup_connection_config();
    }
  } else {
    console.log("Found local database, how do I connect?");

    await setup_connection_config();
  }
}
Check for locally running database (ip 127.0.0.1, port 5432)

@returns {Promise<void>}