public static void main(String[] args) {
		System.out.println("JDBC: Inserting to database:");
		try {
			Class.forName("com.mysql.jdbc.Driver");
		} catch(ClassNotFoundException e) {
			System.out.println("Driver not found");
			e.printStackTrace();
			return;
		}
		
		Connection connection = null;
		Statement statement = null;
		String databaseUrl = "jdbc:mysql://localhost:3306/bulletinDb";
		String user = "root";
		String pass = "catherineliou104";
		
		String postTableName = "posts";
		String userTableName = "users";
		String topicTableName = "topics";
		try {
			connection = DriverManager.getConnection(databaseUrl, user, pass);
			
			statement = connection.createStatement();
			//statement.executeUpdate("insert into "+ userTableName + " values (0, 'anonymous','' )");
			//statement.executeUpdate("insert into "+ topicTableName + " values (0, 0, 'First Topic', '2013-02-07 09:07:00', 0)");
			//statement.executeUpdate("insert into "+ postTableName + " values (0, 0, 0, 'First post.','2013-02-07 09:07:00' )");
			
			statement.close();
			connection.close();
		} catch(SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				if(statement != null) statement.close();
			} catch(SQLException se2) {}
			try {
				if(connection != null) connection.close();
			} catch(SQLException se3) {}
		}
	}