protected static Connection getConnection() {
		Connection connection = null;
		
		try {
		    Class.forName("com.mysql.jdbc.Driver");
		} catch (ClassNotFoundException e) {
		    throw new RuntimeException("Cannot find the driver in the classpath", e);
		}
		
		//database location
		String url = "jdbc:mysql://localhost:3306/sectweet";
		
		//get input from user
		//Scanner scn = new Scanner(System.in);
		//System.out.println("Please enter your username:");
		//String username = scn.nextLine();
		//System.out.println("Please enter your password:");
		//String password = scn.nextLine();
		
		String username = "tester";
		String password = "test";
		
		//close scanner
		//scn.close();
		
		//get a connection
		try {
		    connection = DriverManager.getConnection(url, username, password);
		} catch (SQLException e) {
		    throw new RuntimeException("Cannot connect the database", e);
		} 
		
		return connection;
		
	}